﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class BUSKhoi
    {
        public static DataTable getAll()
        {
            return DAOKhoi.getAll();
        }

        public static bool isDuplicate(DTOKhoi khoi)
        {
            return DAOKhoi.isDuplicate(khoi);
        }

        public static void Add(string tenkhoi)
        {
            DAOKhoi.Add(tenkhoi);
        }

        public static void Delete(int makhoi)
        {
            DAOKhoi.Delete(makhoi);
        }

        public static void Edit(int makhoi,string tenkhoi)
        {
            DAOKhoi.Edit(makhoi,tenkhoi);
        }
    }
}
